
<table>
  <tr>
    <th>名前</th>
    <th>Tag</th>
    <th>star</th>
    <th>短説明</th>
    <th>表示Flag</th>
  </tr>
<%- items.each do |item| -%>
  <tr>
    <td><%=link_to(h(item.name), :action => 'show', :id => item) %></td>
    <td>
      <% item.tags.each do |tag| -%>
        <%=h(tag) %>&nbsp;
      <% end -%>
    </td>
    <td>
      <ul class="star-rating small-star">
      	<li class="current-rating" style="width:<%= item.rate %>%;"><%= item.rate %></li>
        <li><span title="1 star out of 5" class="one-star">1</span></li>
        <li><span title="2 stars out of 5" class="two-stars">2</span></li>
        <li><span title="3 stars out of 5" class="three-stars">3</span></li>
        <li><span title="4 stars out of 5" class="four-stars">4</span></li>
        <li><span title="5 stars out of 5" class="five-stars">5</span></li>
      </ul>
      <%= item.rate %>/100 <%= item.rating.size %>人 評価
    </td>
  	<td>
      <%=truncate(h(item.s_description), 20) %>
    </td>
    <td>
      <div id="flag_<%=item.id%>">
        <%= render :partial => 'flag', :locals => {:item => item } %>
      </div>
    </td>
  </tr>
<%- end -%>
</table>
